﻿<src:WpfConfiguration x:Class="Total_Mayhem.Other.DateTimeEventConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             xmlns:LD="clr-namespace:Loya.Dameer;assembly=Loya.Dameer"
             xmlns:common="clr-namespace:Total_Mayhem.Common"
             Width="400"
             mc:Ignorable="d" 
             d:DesignHeight="300">
    <src:WpfConfiguration.Resources>

    </src:WpfConfiguration.Resources>

    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="133" />
            <ColumnDefinition Width="207" />
            <ColumnDefinition Width="60" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="20"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Name="txtDescription" Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" TextAlignment="Center" Margin="0,10,0,10" TextWrapping="Wrap">
			Create a Date / Time event with options for repeating.
        </TextBlock>

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="1" Name="txtLabel">Start Date:</TextBlock>
        <LD:Dameer Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" Name="dtStartDate" VerticalAlignment="Center" Format="Custom" CustomFormat="MM/dd/yy (ddd) hh:mm:ss tt" Height="24" Margin="0,0,0,6" ShowCheckBox="False" FontFamily="Courier New" />

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="2" Name="txtRepeats">Repeats:</TextBlock>
        <ComboBox Grid.Column="1" Grid.Row="2" Height="23" HorizontalAlignment="Left" VerticalAlignment="Center" Name="cmbRepeat" Width="120" SelectionChanged="cmbRepeat_SelectionChanged" >
            <ComboBoxItem IsSelected="True" Tag="" Content="Never"/>
            <ComboBoxItem Tag="Minutes" Content="Minutes"/>
            <ComboBoxItem Tag="Days" Content="Daily"/>
            <ComboBoxItem Tag="Weeks" Content="Weekly"/>
            <ComboBoxItem Tag="Months" Content="Monthly" />
            <!-- <ComboBoxItem Tag="" Content="Custom Day"/>
             -->
        </ComboBox>
        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="3" Name="txtRepeatsEvery">Repeats Every:</TextBlock>
        <TextBox Name="tbRepeatsEvery" Grid.Column="1" Grid.Row="3" Margin="5,0,0,0" Width="45" HorizontalAlignment="Left" VerticalAlignment="Center" Text="10" MaxLength="4" Visibility="Hidden" TextChanged="tbRepeatsEvery_TextChanged"/>
        <ComboBox Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Left" VerticalAlignment="Center" Name="cmbRepeatEvery" Width="50" SelectionChanged="cmbRepeatEvery_SelectionChanged" >
            <ComboBoxItem IsSelected="True" Content="1"/>
            <ComboBoxItem Content="2"/>
            <ComboBoxItem Content="3"/>
            <ComboBoxItem Content="4"/>
            <ComboBoxItem Content="5"/>
            <ComboBoxItem Content="6"/>
            <ComboBoxItem Content="7"/>
            <ComboBoxItem Content="8"/>
            <ComboBoxItem Content="9"/>
            <ComboBoxItem Content="10"/>
            <ComboBoxItem Content="11"/>
            <ComboBoxItem Content="12"/>
            <ComboBoxItem Content="13"/>
            <ComboBoxItem Content="14"/>
            <ComboBoxItem Content="15"/>
            <ComboBoxItem Content="16"/>
            <ComboBoxItem Content="17"/>
            <ComboBoxItem Content="18"/>
            <ComboBoxItem Content="19"/>
            <ComboBoxItem Content="20"/>
            <ComboBoxItem Content="21"/>
            <ComboBoxItem Content="22"/>
            <ComboBoxItem Content="23"/>
            <ComboBoxItem Content="24"/>
            <ComboBoxItem Content="25"/>
            <ComboBoxItem Content="26"/>
            <ComboBoxItem Content="27"/>
            <ComboBoxItem Content="28"/>
            <ComboBoxItem Content="29"/>
            <ComboBoxItem Content="30"/>
        </ComboBox>
        <TextBlock Grid.Column="1" Grid.Row="3" Margin="60,0,0,0" Name="txtRepeatsEveryLabel" TextAlignment="Left" VerticalAlignment="Center">Days</TextBlock>

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="4" Name="txtRepeatOn">Repeat On:</TextBlock>
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" Name="spRepeatOn">
            <CheckBox Name="chkSun" Width="30">S</CheckBox>
            <CheckBox Name="chkMon" Width="30">M</CheckBox>
            <CheckBox Name="chkTue" Width="30">T</CheckBox>
            <CheckBox Name="chkWed" Width="30">W</CheckBox>
            <CheckBox Name="chkThu" Width="30">T</CheckBox>
            <CheckBox Name="chkFri" Width="30">F</CheckBox>
            <CheckBox Name="chkSat" Width="30">S</CheckBox>
        </StackPanel>
        <TextBlock Name="txtDayOfMonth" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2" TextAlignment="Center" VerticalAlignment="Center">Day of Month (Last Day of Month if NA)</TextBlock>
        <Button Name="btnTest" Margin="5,0,0,0" Width="50" Click="btnTest_Click" Grid.Column="2" Grid.Row="5" IsEnabled="True">Test</Button>

        <TextBlock Style="{StaticResource ConfigErrorMessage}" Name="textInvalid" Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="5" TextAlignment="Center">An error occured. This is the status message.</TextBlock>
        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="6" TextAlignment="Center" VerticalAlignment="Top">For more details please visit the <Hyperlink Name="hlHelp" NavigateUri="http://www.nirsoft.net/utils/nircmd2.html#commands" TargetName="_blank">NirCmd help page</Hyperlink></TextBlock>
        
    </Grid>
</src:WpfConfiguration>
